import request from '@/utils/request'

export function getStuInfoTree(params) {
  return request({
    url: '/api/stu-info/get-info-tree',
    method: 'get',
    params: params
  })
}

export function pageStuInfos(params) {
  return request({
    url: '/api/stu-info/page-stu-infos',
    method: 'get',
    params: params
  })
}

export function addStuInfo(data) {
  return request({
    url: '/api/stu-info/add-stu-info',
    method: 'post',
    data
  })
}

export function updateStuInfo(data) {
  return request({
    url: '/api/stu-info/update-stu-info',
    method: 'post',
    data
  })
}

export function deleteStuInfo(id) {
  return request({
    url: '/api/stu-info/delete-stu-info',
    method: 'delete',
    params: { id }
  })
}
